package fr.afcepf.atod12.afcepfvoyage.beans;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name="Hebergement")
public class Hebergement implements Serializable{
	@Transient
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Long idHebergement;
	@Column(length=30)
	String hotel;
	@OneToOne
	Adresse adresse;
	@Column(length=30)
	String typeChambre;
	Double prix;
	public Hebergement() {
	}
	public final Long getIdHebergement() {
		return idHebergement;
	}
	public final void setIdHebergement(Long idHebergement) {
		this.idHebergement = idHebergement;
	}
	public final String getHotel() {
		return hotel;
	}
	public final void setHotel(String hotel) {
		this.hotel = hotel;
	}
	public final Adresse getAdresse() {
		return adresse;
	}
	public final void setAdresse(Adresse adresse) {
		this.adresse = adresse;
	}
	public final String getTypeChambre() {
		return typeChambre;
	}
	public final void setTypeChambre(String typeChambre) {
		this.typeChambre = typeChambre;
	}
	public final Double getPrix() {
		return prix;
	}
	public final void setPrix(Double prix) {
		this.prix = prix;
	}
}

